package com.appspot.theonionorthenews;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class EmfSingleton {

  private static EntityManagerFactory singleton =
      Persistence.createEntityManagerFactory("transactions-optional");

  private EmfSingleton() {
    // non-instantiable
  }

  public static EntityManagerFactory getInstance() {
    return singleton;
  }
}
